package com.sdust.pojos.entity;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

@Data
@Builder
public class Comment {

    @Field("_id")
    private String id;

    private Integer userId;

    private String content;

    private LocalDateTime createTime;

    private Integer targetArticleId;

    private String userAvatar;

    private String userName;
}
